package com.xbk.seckill.common.response;

/**
 * 响应消息构建类
 *
 * @author xiexu
 * @date 2025/1/11 07:47
 */
public class ResponseMessageBuilder {

    public static <T> ResponseMessage<T> build(Integer code, T body) {
        return new ResponseMessage<T>(code, body);
    }

    public static <T> ResponseMessage<T> build(Integer code) {
        return new ResponseMessage<T>(code);
    }

}
